
using System;
using System.Xml;
using System.Xml.Serialization;
using System.Web;
using Portal.FileSystemData;

namespace Portal.Modules.FileBrowser
{
  [XmlRoot("FileBrowser")]
  public class ModuleConfig
  {
    /// <summary>
    /// Definiert, das virtuelle Root Verzeichnis (Relativ zum ApplicationRoot).
    /// </summary>
    [XmlElement("VirtualRoot")]
    public String VirtualRoot = Portal.Api.Config.GetModuleDataVirtualPath() + "Download";

    [XmlElement("FilesPerPage")]
    public int FilesPerPage = 30;

    [XmlElement("EnableRss")]
    public bool EnableRssFeed = false;

    [XmlElement("RssLinkOnTop")]
    public bool RssLinkOnTop = false;

    [XmlElement("RssLinkOnBottom")]
    public bool RssLinkOnBottom = false;

    [XmlElement("RssFeedTitle")]
    public string RssFeedTitle = Portal.Api.Config.WebsiteTitle;

    [XmlElement("RssFeedDescription")]
    public string RssFeedDescription = "";

    [XmlElement("RssTTL")]
    public int RssFeedTimeToLive = 60;
  }
}
